package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购入库对象 mes_buy_in
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesBuyIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购订单id */
    private Integer id;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String buyOrdId;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyInTime;

    /** 原料编码 */
    @Excel(name = "原料编码")
    private String matId;

    /** 原料名 */
    @Excel(name = "原料名")
    private String matName;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long needMatNum;

    /** 库位编码 */
    @Excel(name = "库位编码")
    private String locaId;

    public List<MesBuyIn> getMtrs() {
        return mtrs;
    }

    public void setMtrs(List<MesBuyIn> mtrs) {
        this.mtrs = mtrs;
    }

    private List<MesBuyIn> mtrs;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setBuyOrdId(String buyOrdId) 
    {
        this.buyOrdId = buyOrdId;
    }

    public String getBuyOrdId() 
    {
        return buyOrdId;
    }
    public void setBuyInTime(Date buyInTime) 
    {
        this.buyInTime = buyInTime;
    }

    public Date getBuyInTime() 
    {
        return buyInTime;
    }
    public void setMatId(String matId) 
    {
        this.matId = matId;
    }

    public String getMatId() 
    {
        return matId;
    }
    public void setMatName(String matName) 
    {
        this.matName = matName;
    }

    public String getMatName() 
    {
        return matName;
    }
    public void setNeedMatNum(Long needMatNum) 
    {
        this.needMatNum = needMatNum;
    }

    public Long getNeedMatNum() 
    {
        return needMatNum;
    }
    public void setLocaId(String locaId) 
    {
        this.locaId = locaId;
    }

    public String getLocaId() 
    {
        return locaId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buyOrdId", getBuyOrdId())
            .append("buyInTime", getBuyInTime())
            .append("matId", getMatId())
            .append("matName", getMatName())
            .append("needMatNum", getNeedMatNum())
            .append("locaId", getLocaId())
            .toString();
    }
}
